﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml.Serialization;
using System.IO;

namespace ISKConfigurator
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            LoadXml();
        }

        private void LoadXml()
        {
            Conf config = new Conf();
            FileStream fs = new FileStream("c:\\test.xml", FileMode.Open);
            XmlSerializer sr = new XmlSerializer(typeof(Conf));
            config = (Conf)sr.Deserialize(fs);
            foreach (Msg msg in config.MsgList)
            {
                richTextBox1.AppendText(msg.Name);
            }
            fs.Close();
        }
    }
}
